<!DOCTYPE html>
<html>
    <head>
        <title><?= $title; ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="<?= base_url() . 'res/css/login.css'; ?>"/>
        <link rel="stylesheet" type="text/css" href="<?= base_url() . 'res/css/button.css'; ?>"/>
        <link rel="stylesheet" type="text/css" href="<?= base_url() . 'res/css/text.css'; ?>"/>
    </head>
    <body>

        <div id="wrapper">
            <?php
            if (!$login) {
                echo '<div id="msg">Login Gagal</div>';
            }
            ?>            
            <div id="box">
                <h1>Admin Login</h1>
                <?= form_open('login/validate'); ?>
                <fieldset>
                    <label>Username</label>
                    <input type="text" name="username" required=""/>
                </fieldset>
                <fieldset>
                    <label>Password</label>
                    <input type="password" name="password" required=""/>
                </fieldset>
                <fieldset class="bottom">
                    <input type="submit" value="Login" class="btn btn-blue"/>
                </fieldset>
                <?= form_close(); ?>
            </div>
        </div>
    </body>
</html>
